﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class frmPanelDeControl : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Panel1.Visible = true;
    }
    protected void Button2_Click(object sender, EventArgs e)
    {
        SqlDataSource2.InsertParameters["nombre"].DefaultValue = TextBox3.Text;
        SqlDataSource2.InsertParameters["pass"].DefaultValue = TextBox4.Text;
        SqlDataSource2.InsertParameters["tipo_cuenta"].DefaultValue = DropDownList2.SelectedIndex.ToString();

        SqlDataSource2.Insert();

        Label2.Text = "Usuario registrado correctamente";
    }

    protected void TextBox3_TextChanged(object sender, EventArgs e)
    {

    }
    protected void TextBox4_TextChanged(object sender, EventArgs e)
    {

    }
    protected void Button4_Click(object sender, EventArgs e)
    {
        Response.Redirect("MenuSoporte.aspx");
    }
}